package com.zhentao.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 国阳云短信配置
 */
@Data
@Component
@ConfigurationProperties(prefix = "sms")
public class SmsConfig {
    
    /**
     * 短信服务商类型 (guoyang, test)
     */
    private String provider = "test";
    
    /**
     * 国阳云短信配置
     */
    private String host = "https://gyytz.market.alicloudapi.com";
    private String path = "/sms/smsSend";
    private String appcode = "11c45a2ad95c4463bb9befc362843d3a";
    private String smsSignId = "2e65b1bb3d054466b82f0c9d125465e2";
    private String templateId = "908e94ccf08b4476ba6c876d13f084ad";
    
    /**
     * 获取完整的URL
     */
    public String getUrl() {
        return host + path;
    }
}
